import { defineConfig } from '@umijs/max'
import Routes from './routes'

export default defineConfig({
  antd: {},
  access: {},
  model: {},
  initialState: {},
  request: {},
  hash: true,
  deadCode: {},
  esbuildMinifyIIFE: true,
  layout: {
    title: 'Zusheng Studio'
  },
  title: '',
  favicons: ['/favicon.png'],
  mfsu: {
    strategy: 'normal',
    esbuild: false
  },
  define: {
    TENCENT_OSS_URL: 'https://tencent-oss.zusheng.cc'
  },
  lessLoader: {
    // modifyVars: {
    //   hack: 'true; @import "@/styles/variable.less"',
    // },
  },
  routes: Routes,
  npmClient: 'npm',
  dva: {},
  proxy: {}
  // chainWebpack(config) {
  //   config.module
  //     .rule('css')
  //     .test(/\.css$/)
  //     .use('style-loader')
  //     .loader('style-loader')
  //     .end()
  //     .use('css-loader')
  //     .loader('css-loader')
  //     .options({
  //       modules: false
  //     })
  //     .end()
  // }
})
